package aeolus.wind.spider.biz.service.interfaces;

import java.util.List;
import java.util.Map;

import aeolus.wind.spider.biz.dataobject.Vote;

public interface VoteService {

    /**
     * 列出identityNameBeVoted的所有被投票
     * 
     * @param identityNameVoted
     * @return
     */
    public List<Vote> listVoted(String ownerIdentityName, String identityNameBeVoted);

    /**
     * 列出identityName投的所有人,key是id，以实现快速查找
     * 
     * @param identityName
     * @return
     */
    public Map<String, Vote> getVoteMadeBy(String ownerIdentityName, String identityNameVote);

    public void saveVote(Vote vote);

    public void deleteVote(String voteId);
}
